// executable file directory
package main

import (
  "fmt"
  "os"
  "path/filepath"
  "log"
)

func main() {
  dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
  if err != nil {
    log.Fatalf("%v\n", err)
  }
  fmt.Printf("executable file directory: %s\n", dir)
}
